package com.xjscrm.console.mapper;

import com.xjscrm.common.entity.SopTemplate;
import com.xjscrm.console.param.sop.SopTemplateQuery;
import com.xjscrm.console.vo.SopTemplateVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SopTemplateMapper {
    int add(SopTemplate sopTemplate);

    SopTemplate getById(@Param("id") Long id, @Param("merId") Long merId);

    int update(SopTemplate sopTemplate);

    List<SopTemplateVo> getSopTemplateList(SopTemplateQuery sopTemplateQuery);

    int delById(@Param("id") Long id, @Param("merId") Long merId);
}
